admin-ajax.php 400 (bad request)

122

(function( $ ) {
var ajaxscript = { ajax_url : 'yourdomain.com/wp-admin/admin-ajax.php' }
$.ajax({
    url : ajaxscript.ajax_url,
    data : {
        action : 'post_cart_clb',
        id : 1
    },
    method : 'POST', //Post method
    success : function( response ){ console.log(response) },
    error : function(error){ console.log(error) }
  })
})(jQuery)

Comments

Submit
0 Comments